﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;
using WepApi07.Data.Entity;

namespace WepApi07.Data
{
    public class Admin07Dbcontext:DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            var str = "server=.;database=Admin07;uid=sa;pwd=A123456";
            optionsBuilder.UseSqlServer(str);
        }

        public DbSet<Users> Users { get; set; }
        public DbSet<Roles> Roles { get; set; }

        public DbSet<Logs> Logs { get; set; }
    }
}
